<?php

// // 172.16.25.52—192.168.71.3
// $mechine52 = '192.168.71.3';
// //$mechine52 = '172.16.25.52';
// // 172.16.25.56——192.168.71.4
// $mechine56 = '192.168.71.4';
// //$mechine56 = '172.16.25.56';
// // 172.16.25.57—192.168.71.5
// $mechine57 = '192.168.71.5';
// //$mechine57 = '172.16.25.57';
// // 172.16.25.63—192.168.71.6
// $mechine63 = '192.168.71.6';
// //$mechine63 = '172.16.25.63';
// // 172.16.25.62——192.168.71.7
// $mechine62 = '192.168.71.7';
// //$mechine62 = '172.16.25.62';

// 172.16.25.52—192.168.71.3
$mechine52 = '172.16.25.52';
//$mechine52 = '172.16.25.52';
// 172.16.25.56——192.168.71.4
$mechine56 = '172.16.25.56';
//$mechine56 = '172.16.25.56';
// 172.16.25.57—192.168.71.5
$mechine57 = '172.16.25.57';
//$mechine57 = '172.16.25.57';
// 172.16.25.63—192.168.71.6
$mechine63 = '172.16.25.63';
//$mechine63 = '172.16.25.63';
// 172.16.25.62——192.168.71.7
$mechine62 = '172.16.25.62';
//$mechine62 = '172.16.25.62';

$datacenter = '180.169.39.226';

// 通过环境变量统一管理可变的 key
defined('PAIDAN_DB_DSN') or define('PAIDAN_DB_DSN', 'mysql:host=' . $mechine52 . ';dbname=unit_qrcode;port=3306;');
defined('PAIDAN_DB_USERNAME') or define('PAIDAN_DB_USERNAME', 'paidan_user');
defined('PAIDAN_DB_PASSWORD') or define('PAIDAN_DB_PASSWORD', 'aaA5y6C9vL');

// REDIS
defined('PAIDAN_REDIS_HOST') or define('PAIDAN_REDIS_HOST', $mechine56);
defined('PAIDAN_REDIS_PORT') or define('PAIDAN_REDIS_PORT', 6379);
defined('PAIDAN_REDIS_DB') or define('PAIDAN_REDIS_DB', 10);
defined('PAIDAN_REDIS_JOB_DB') or define('PAIDAN_REDIS_JOB_DB', 0);

// 文件服务
defined('FILE_SERVER') or define('FILE_SERVER', 'http://' . $mechine52 . ':10080');
defined('FILE_SERVER_APPID') or define('FILE_SERVER_APPID', '6');
defined('FILE_SERVER_APPKEY') or define('FILE_SERVER_APPKEY', 'L8#93oidOOieIL');
defined('FILE_SERVER_FILE_PATH') or define('FILE_SERVER_FILE_PATH', 'http://' . $mechine52 . '/api-v3/inner/events/getFile/f');

// 数据中台
defined('DATA_CENTER_HOST') or define('DATA_CENTER_HOST', 'http://' . $datacenter . ':23005');
defined('DATA_CENTER_TOKEN') or define('DATA_CENTER_TOKEN', '240e13b16eff42aeaec9bda8c5707f84');
defined('DATA_CENTER_SUBMIT_TOKEN') or define('DATA_CENTER_SUBMIT_TOKEN', 'e8c1cbdcc19990f1ec6e961e06f8e68a01a96244cd4609030e0d3bdc5f85e3f9');

// 案件 es 服务
defined('PAIDAN_ES_HOST') or define('PAIDAN_ES_HOST', '180.169.39.226:9206');

// 用户中心
defined('USER_CENTER_HOST') or define('USER_CENTER_HOST', 'http://' . $mechine57 . ':8080/api/');
defined('USER_CENTER_APPID') or define('USER_CENTER_APPID', 'ciimc-idp');
defined('USER_CENTER_APPKEY') or define('USER_CENTER_APPKEY', 'RXgmcX3LmSfRdE-p8H0FT1b9_9NwVoXO');

// 装配、流程
defined('FlOW_CENTER_HOST') or define('FlOW_CENTER_HOST', 'http://' . $mechine57 . ':18307');
defined('FLOW_CENTER_APPID') or define('FLOW_CENTER_APPID', 'case-zhuangpei');
defined('FLOW_CENTER_APPKEY') or define('FLOW_CENTER_APPKEY', 'xlqrG5p8E5ih-c_w-tpk8FO2z3Ekp9EK');

defined('PAIDAN_SELF_APPID') or define('PAIDAN_SELF_APPID', 'unit-qrcode');
defined('PAIDAN_SELF_APPKEY') or define('PAIDAN_SELF_APPKEY', 'JfViw-HCv5FXE8eYZRjqUeMXKuAAJTFw');

defined('PAIDAN_HOST') or define('PAIDAN_HOST', $mechine52);

defined('ZW_HOST') or define('ZW_HOST', 'http://zwwxuat.shdata.com/cgi-bin');
defined('ZW_CORP_ID') or define('ZW_CORP_ID', 'wwb9164107d1885dd1');
defined('ZW_YZB_APP_NAME') or define('ZW_YZB_APP_NAME', 'yzb');
defined('ZW_YZB_AGENT_ID') or define('ZW_YZB_AGENT_ID', '1000641');
defined('ZW_YZB_SERCRET') or define('ZW_YZB_SERCRET', '1yr5sujZEBRd0_tucI-dPp1PJBUT-wIzA4elyhyatw4');

return [
    'zw' => [
        'host' => ZW_HOST,
        'corpid' => ZW_CORP_ID,
        'apps' => [
            ZW_YZB_APP_NAME => [
                'name' => '社区疫治宝',
                'secret' => ZW_YZB_SERCRET,
                'agentId' => ZW_YZB_AGENT_ID,
            ],
        ],
    ],
    'asycn_download_api' => [   //异步下载API
        'base_uri' => ASYCN_DOWNLOAD_HOST,
        'key' => ASYCN_DOWNLOAD_TOKEN,
    ],
    // 搜索地址
    'es_end_point' => 'http://180.169.39.226:23008',
    // 搜索密钥
    'es_search_token' => 'pd2e13b16eff42aeaec9bda8c570e2pd',
    // 搜索地址
    'es_end_point2' => 'http://180.169.39.226:23007',
    // 搜索密钥
    'es_search_token2' => '240e13b16eff42aeaec9bda8c5707f84',

    // 流程中心
    'flow_center' => [
        'app_id' => FLOW_CENTER_APPID,
        'app_secret' => FLOW_CENTER_APPKEY,
        'base_url' => FlOW_CENTER_HOST
    ],
    'self' => [
        'host' => FlOW_CENTER_HOST,
        'app_id' => PAIDAN_SELF_APPID,
        'app_secret' => PAIDAN_SELF_APPKEY,
    ],
    //apptoken配置
    'case-zhuangpei' => 'xlqrG5p8E5ih-c_w-tpk8FO2z3Ekp9EK',
    'ciimc-usercenter' => 'VT5yvWoHubj6AC3z1a8O2-GLnO5Situ9',
    //用于生成字段code
    'codeMain' => 'OS',
    //CD经纬度转换服务
    'CD_TRANSFORM' => 'http://10.89.4.131/CoordReverse/mapTransform/',
    'uploadPath' => '@runtime/uploadfiles',
    'transformServerRoot' => [
        'base_url' => 'http://' . $mechine52 . ':8086/paidan_data_route'
    ],
    'data_center' => [
        'host' => DATA_CENTER_HOST,
        'token' => '240e13b16eff42aeaec9bda8c5707f84',
    ],
    'paidan' => [
        'host' => PAIDAN_HOST,
        'app_id' => '10000',
        'token' => '1fQ3h8P03eUcL4Vb'
    ],
 'upload_excel_config' => [
        'api_url' => '@api/files/upload_excel',
    ],
];
